<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
<head>
<title>员工信息修改</title>
<style type="text/css">
<!--
.td {
	font-size: 14px;
	text-decoration: none;
}
.12 {
	font-size: 12px;
	line-height: 1.5;
	text-decoration: none;
}
a:link {
	font-size: 14px;
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a.b:link {
	color: #333333;
	text-decoration: none;
	font-size: 12px;
}
a.b:active {
	font-size: 12px;
	color: #666666;
	text-decoration: none;
}
a.b:hover {
	font-size: 12px;
	color: #666666;
	text-decoration: underline;
}
a.b:visited {
	font-size: 12px;
	color: #666666;
	text-decoration: none;
}
.xx {
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	border-top-color: #CCCCCC;
	border-right-color: #CCCCCC;
	border-bottom-color: #CCCCCC;
	border-left-color: #CCCCCC;
}
.zx {
	border-top-width: 1.0px;
	border-right-width: 1.0px;
	border-bottom-width: 1.0px;
	border-left-width: 1.0px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: dotted;
	border-left-style: none;
	border-top-color: #CCCCCC;
	border-right-color: #CCCCCC;
	border-bottom-color: #CCCCCC;
	border-left-color: #CCCCCC;
}
.tiao {
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #0099CC;
	border-right-color: #0099CC;
	border-bottom-color: #0099CC;
	border-left-color: #0099CC;
	border-top-width: 1.0px;
	border-right-width: 1.0px;
	border-bottom-width: 1.0px;
	border-left-width: 1.0px;
}
.da {
	border-top-width: 1.0px;
	border-right-width: 1.0px;
	border-bottom-width: 1.0px;
	border-left-width: 1.0px;
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #CCCCCC;
	border-right-color: #CCCCCC;
	border-bottom-color: #CCCCCC;
	border-left-color: #CCCCCC;
}
.zy {
	border-top-width: 2px;
	border-right-width: 2px;
	border-bottom-width: 2px;
	border-left-width: 2px;
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #FFFFFF;
	border-right-color: #FFFFFF;
	border-bottom-color: #FFFFFF;
	border-left-color: #FFFFFF;
}
.y {
	border-top-width: 2px;
	border-right-width: 2px;
	border-bottom-width: 2px;
	border-left-width: 2px;
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: none;
	border-left-style: none;
	border-top-color: #FFFFFF;
	border-right-color: #FFFFFF;
	border-bottom-color: #FFFFFF;
	border-left-color: #FFFFFF;
}
-->
</style>
<link href="css/moban.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.bianti {
	font-size: 14px;
	line-height: 1.5;
	color: #FFFFFF;
	text-decoration: none;
}
.lanbianshang {
	border-top-width: 3px;
	border-right-width: 3px;
	border-bottom-width: 3px;
	border-left-width: 3px;
	border-top-style: solid;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	border-top-color: #0066CC;
	border-right-color: #0066CC;
	border-bottom-color: #0066CC;
	border-left-color: #0066CC;
}
.hongxian {
}
a.14:link {
	font-size: 14px;
	line-height: 1.5;
	color: #FF0000;
	text-decoration: underline;
}
a.14:hover {
	font-size: 14px;
	line-height: 1.5;
	color: #FF0000;
	text-decoration: none;
}
a.14:active {
	font-size: 14px;
	line-height: 1.5;
	color: #FF0000;
	text-decoration: none;
}
a.14:visited {
	font-size: 14px;
	line-height: 1.5;
	color: #FF0000;
	text-decoration: underline;
}
-->
</style>
<link href="ruanjianfuwu/css/2jihang.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
@import url(css/hongxianshang.css);
-->
</style>
<style type="text/css">
<!--
.12x {
	font-size: 12px;
	line-height: 1.5;
	color: #FF0000;
	text-decoration: underline;
}
-->
</style>
</head>

<body topmargin="0">
<table width="780" height="400" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="778" height="473" colspan="2" valign="top"> <table width="780" height="105" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="100" valign="top" background="images/wancheng(fan15).jpg"> 
            <table width="100%" height="64" border="0" cellpadding="0" cellspacing="0" class="hongxianshang">
              <tr> 
                <td width="22%" height="23">&nbsp;</td>
                <td width="78%">&nbsp;</td>
              </tr>
              <tr valign="bottom"> 
                <td colspan="2">&nbsp; </td>
              </tr>
            </table>
            <table width="100%" height="36" border="0" cellpadding="0" cellspacing="0">
              <tr class="td"> 
                <td width="203" height="36" align="center" valign="bottom"> <div align="left" class="12"> 
                    　 </div></td>
                <td width="8" align="center" valign="middle"><strong><font color="#FFFFFF">|</font></strong></td>
                <td width="73" align="center" valign="bottom"> <table border="0" width="73" cellspacing="1" cellpadding="0" height="36" align="left">
                    <tr bgcolor="#009900"> 
                      <td bgcolor="#F01F25" onMouseOver="this.bgColor = '#1165A1'" 
onMouseOut="this.bgColor = '#F01F25'" > <div align="center" class="td"><a href="AdminLogin.action"><font color="#FFFFFF"><strong>首页</strong></font></a><a href="waibaofuwu/peixunfuwu.htm"><font color="#FFFFFF"></font></a></div></td>
                    </tr>
                  </table></td>
                <td width="8" align="center" valign="middle"><strong><font color="#FFFFFF">|</font></strong></td>
                <td width="74" align="center" valign="bottom"><table border="0" width="73" cellspacing="1" cellpadding="0" height="36" align="left">
                    <tr bgcolor="#009900"> 
                      <td bgcolor="#F01F25" onMouseOver="this.bgColor = '#1165A1'" 
onMouseOut="this.bgColor = '#F01F25'" > <div align="center" class="td"><a href="http://www.ascenttech.com.cn/grpx.htm"><font color="#FFFFFF"><strong>个人培训</strong></font></a></div></td>
                    </tr>
                  </table></td>
                <td width="13" align="center" valign="middle"><font color="#FFFFFF"><strong>|</strong></font><font color="#FFFFFF" size="-1">&nbsp;</font></td>
                <td width="73" align="center" valign="middle"> <table border="0" width="73" cellspacing="1" cellpadding="0" height="36" align="left">
                    <tr bgcolor="#009900"> 
                      <td bgcolor="#F01F25" onMouseOver="this.bgColor = '#1165A1'" 
onMouseOut="this.bgColor = '#F01F25'" > <div align="center" class="td"><a href="http://www.ascenttech.com.cn/qypx.htm"><font color="#FFFFFF"><strong>企业培训</strong></font></a><a href="waibaofuwu/index.htm"><font color="#FFFFFF"></font></a><a href="waibaofuwu/peixunfuwu.htm"><font color="#FFFFFF"></font></a></div></td>
                    </tr>
                  </table></td>
                <td width="8" align="center" valign="middle"><font color="#FFFFFF"><strong>|</strong></font></td>
                <td width="74" align="center" valign="middle"> <table border="0" width="73" cellspacing="1" cellpadding="0" height="36" align="left">
                    <tr bgcolor="#009900"> 
                      <td bgcolor="#F01F25" onMouseOver="this.bgColor = '#1165A1'" 
onMouseOut="this.bgColor = '#F01F25'" > <div align="center" class="td"><a href="http://www.ascenttech.com.cn/waibaofuwu/ruanjianwaibaofuwu.htm"><font color="#FFFFFF"><strong>软件外包</strong></font></a><a href="waibaofuwu/peixunfuwu.htm"><font color="#FFFFFF"></font></a></div></td>
                    </tr>
                  </table></td>
                <td width="8" align="center" valign="middle"><font color="#FFFFFF"><strong>|</strong></font></td>
                <td width="74" align="center" valign="middle"> <table border="0" width="73" cellspacing="1" cellpadding="0" height="36" align="left">
                    <tr bgcolor="#009900"> 
                      <td bgcolor="#F01F25" onMouseOver="this.bgColor = '#1165A1'" 
onMouseOut="this.bgColor = '#F01F25'" ><div align="center" class="td"><font color="#FFFFFF"><strong class="td"><a href="http://www.ascenttech.com.cn/ruanjianfuwu/hexinchanpin.htm" class="bianti">软件服务</a></strong></font></div></td>
                    </tr>
                  </table></td>
                <td width="8" align="center" valign="middle"><font color="#FFFFFF"><strong>|</strong></font></td>
                <td width="74" align="center" valign="middle"> <div align="center"> 
                    <table border="0" width="73" cellspacing="1" cellpadding="0" height="36" align="left">
                      <tr bgcolor="#009900"> 
                        <td bgcolor="#F01F25" onMouseOver="this.bgColor = '#1165A1'" 
onMouseOut="this.bgColor = '#F01F25'" > <div align="center" class="td"><font color="#FFFFFF"><strong class="td"><a href="http://www.ascenttech.com.cn/gongsjianjie/gongsjianjie.htm" class="bianti">关于我们</a></strong></font></div></td>
                      </tr>
                    </table>
                  </div></td>
                <td width="8" align="center" valign="middle"> <div align="center"><font color="#FFFFFF"><strong>|</strong></font></div></td>
                <td width="74" align="center" valign="middle"> <div align="center"> 
                    <table border="0" width="73" cellspacing="1" cellpadding="0" height="36" align="left">
                      <tr bgcolor="#009900"> 
                        <td bgcolor="#F01F25" onMouseOver="this.bgColor = '#1165A1'" 
onMouseOut="this.bgColor = '#F01F25'" ><div align="center" class="td"><font color="#FFFFFF"><strong class="td"><a href="#" class="bianti">在线论坛</a></strong></font></div></td>
                      </tr>
                    </table>
                  </div>
                  <div align="left"><font color="#FFFFFF"></font></div></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="783" height="72%" border="0" cellpadding="0" cellspacing="0">
        <tr class="xx"> 
          <td width="783" height="527" valign="top" bordercolor="#999999" class="xx"> 
           <form action="AdminModify.action" method="post" onsubmit="return check()" >
            <TABLE class=toolbar height=27 cellSpacing=0 cellPadding=0 width="100%" 
border=0>
              <TBODY>
                <TR class="12"> 
                  <TD> <table width="40%" border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td width="43%" height="18" bgcolor="#FFFFCC"> 
                          <div align="center"><a href="AdminLogin.action" class="mobanse"><font color="#000000">添加员工</font></a></div></td>
                        <td width="13%">&nbsp;</td>
                        <td width="43%" bgcolor="#FFFFCC"> 
                          <div align="center"><a href="AdminLesson.action" class="mobanse"><font color="#000000">课程</font></a></div></td>
                      </tr>
                    </table></TD>
                  <TD align=right><a href="Logout.action">退出系统</a></TD>
                </TR>
              </TBODY>
            </TABLE>
            <DIV class=scroll id=div style="WIDTH: 100%; HEIGHT: 500px"> 
              <FIELDSET>
              <LEGEND><SPAN class=12><strong><font color="#0066CC">修改员工</font></strong></SPAN></LEGEND>
             
              <s:iterator value="list" status="index">
              <table class=editFormTable bordercolor=#e5eaf0 height=120 cellspacing=1 
width="100%" border=1>
                <tbody>
                  <tr> 
                    <td width=92 height="36" align=right nowrap class="12"> <div align=right>姓名：</div></td>
                    <td colspan="5"> <input class=textbox value='<s:property value="name"/>'id="name" name="name"> 
                      <font 
      color=#cc0000>*</font> <div align=right class="12"></div>
                      <div align=right class="12"></div></td>
                  </tr>
                  <tr>
                    <td height=39 align=right nowrap class="12"><div align="right"><font size="2">性别：</font></div></td>
                    <td align=right nowrap> <div align="left">
                    <s:if test='gender.equals("男")'>
                        <input type="radio" name="gender" value="男" checked="checked">
                        男 
                        <input type="radio" name="gender" value="女">
                        女 </s:if>
                      <s:if test='gender.equals("女")'>
                        <input type="radio" name="gender" value="男">
                        男 
                        <input type="radio" name="gender" value="女"  checked="checked">
                        女 </s:if>
                        </div>
                         
                        </td>
                       
                    <td align=right nowrap><font size="2">部门：</font></td>
                    <td align=right nowrap><div align="left">
                        <s:if test='depatement.equals("市场部")'>
							<select name="depatement">
								<option selected="selected">市场部</option>
								<option>技术部</option>
							</select>
                        </s:if>
                        <s:if test='depatement.equals("技术部")'>
							<select name="depatement">
								<option>市场部</option>
								<option selected="selected">技术部</option>
							</select>
                        </s:if>
                      </div></td>
                    <td align=right nowrap><font size="2">手机：</font></td>
                    <td align=right nowrap><div align="left">
                        <input name="phone" class=textbox id="phone"  value='<s:property value="phone"/>' size="12">
                      </div></td>
                  </tr>
                  <tr> 
                    <td height=39 align=right nowrap class="12"> <div align=right>用户名： 
                      </div></td>
                    <td width="162" align=right nowrap><div align="left">
                        <input type="hidden" name="uname" class=textbox value="<s:property value='uname'/>" id="uname" size="12"><s:property value='uname'/>
                      </div></td>
                    <td width="104" align=right nowrap class="12">密码：</td>
                    <td width="169" align=right nowrap><div align="left">
                        <input name="password" class=textbox  value="<s:property value='password'/>" id="password" size="12">
                      </div></td>
                    <td width="60" align=right nowrap>&nbsp;</td>
                    <td width="157" align=right nowrap><div align="left"> </div></td>
                  </tr>
                </tbody>
              </table>
              <s:hidden name="id"></s:hidden>
              </s:iterator>
             
              </FIELDSET>
              <TABLE height=27 cellSpacing=0 cellPadding=0 width="100%" border=0>
                <TBODY>
                  <TR> 
                    <TD class=windowtitle align="center" bgColor=#d0d4e0><table width="18%" border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="43%" height="18" align="center"><input type="submit" value="保存" /></td>
                        </tr>
                      </table></TD>
                  </TR>
                </TBODY>
              </TABLE>
              </DIV>
               </form>
                <div class=scroll id=div style="WIDTH: 100%; HEIGHT: 500px"><p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p><img src="images/banquan.jpg" width="780" height="42" class="xx"></p>
            </div></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
<script>
	function check(){
	var reg = /^((\(\d{3}\))|(\d{3}\-))?13[0-9]\d{8}|15[89]\d{8}/;
	var mobile = document.getElementById('phone').value;
	var name = document.getElementById("name").value;
	var uname = document.getElementById("uname").value;
	var password = document.getElementById("password").value;

	if(name==''){
		alert("您的姓名不能为空!");
		return false;
	}
	if(mobile==''){
		alert("手机不能为空");
		return false;
	}else if(mobile.length>0 && !reg.test(mobile)){
		alert("手机号码格式不对");
		return false;
	}
	if(uname==''){
		alert("您的登录名不能为空！");
		return false;
	}
	if(password==''){
		alert("您的密码不能为空！");
		return false;
	}
	
}
</script>
</html>